package com.zz.framework.core

import android.app.Application
import android.content.Context
import com.zz.framework.core.utils.DataStoreUtils
import com.zz.framework.core.utils.XPreference
import kotlin.properties.Delegates

/**
 * Copyright © 2019 zanezhao All rights reserved.
 * Created by zanezhao on 2019-11-13 16:14.
 *
 * @author: zanezhao 1820022519@qq.com
 * @version: V1.0
 */
open class BaseApp : Application() {
    companion object {
        var context: Context by Delegates.notNull()
        var instance: Application by Delegates.notNull()
    }

    override fun onCreate() {
        super.onCreate()
        context = applicationContext
        instance = this
        XPreference.init(this)
        DataStoreUtils.init(this)
//        Pandora.get().open();
    }
}
